package com.platform.car.service.impl;

import com.platform.car.dao.LockDao;
import com.platform.common.base.impl.BaseServiceImpl;
import com.platform.car.model.Lock;
import com.platform.car.service.LockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class LockServiceImpl extends BaseServiceImpl<Lock> implements LockService {

    @Autowired
    private LockDao lockDao;

    @Override
    public List<Lock> selectByParkingId(Lock lock) {
        List<Lock> lockList = lockDao.selectByParkingId(lock);
        return lockList;
    }
}
